package kr.hkit.powerjava.chapter11.mid;

public class Main {

	public static void main(String[] args) {
		
		Animal ani = new Animal();
		Cat cat = new Cat();
		Dog dog = new Dog();
		
		ani.eat();
		ani.sleep();
		System.out.println(ani);
		cat.eat();
		cat.sleep();
		cat.play();
		System.out.println(cat);
		dog.eat();
		dog.sleep();
		dog.bark();
		System.out.println(dog);
	}
	
	
}
